import React, { Component } from 'react'
import { NavLink, Link, Outlet } from 'react-router-dom'

class Home extends Component {
    constructor(props) {
        super(props);
    }
    state = {}
    render() {
        return (
            <div>
                <h1>home</h1>
                <ul>
                    <li>
                        <Link to="/home/news/123">news</Link>
                    </li>
                    <li>
                        <Link to="/home/msg">msg</Link>
                    </li>
                </ul>
                <Outlet></Outlet>
            </div>
        );
    }
}

export default Home;